import axios from "@/utils/http";

const path = "/api/classification"
export enum API {
    ceate = path + "/ceate",
    list = path + "/list",
    UpData = path + "/UpData",
    Dell = path + "/Dell"
}

export const ceate = <T>(parmas: any): Promise<T> => {
    return axios.post(API.ceate, parmas) as Promise<T>;
};

export const getList = <T>(parmas: any): Promise<T> => {
    return axios.get(API.list, parmas) as Promise<T>;
};
export const upData = <T>(parmas: any): Promise<T> => {
    return axios.post(API.UpData, parmas) as Promise<T>;
};
export const Dell = <T>(parmas: any): Promise<T> => {
    return axios.post(API.Dell, parmas) as Promise<T>;
};

